//引入store 和中間件
import { createStore, applyMiddleware } from 'redux'
//使用redux狀態查看插件
import { composeWithDevTools } from 'redux-devtools-extension'
//引入要使用的thunk中間件
import thunk from 'redux-thunk'
//引入reducers 處理action
import reducers from './reducers'
//創建store實例
const store = createStore(reducers, composeWithDevTools(applyMiddleware(thunk)))
export default store
